﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RedDragon.Common.Domain.Approves
{
    /// <summary>
    /// 审批流程表
    /// </summary>
   [SugarTable("ApprovalProcess")]
    public class ApprovalProcess
    {
        /// <summary>
        /// 主键id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]//IsPrimaryKey 主键
        public int Id { get; set; }
        /// <summary>
        /// 申请表ID
        /// </summary>
        public int ApplyId { get; set; }
        /// <summary>
        /// 审批人
        /// </summary>
        public int ApplyName { get; set; }
        /// <summary>
        /// 审批顺序
        /// </summary>
        public int Sequence { get; set; }
        /// <summary>
        /// 审批时间
        /// </summary>
        public DateTime SeqeTime { get; set; }
        /// <summary>
        /// 审批结果
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]//设置长度
        public string SeqeResult { get; set; }
        /// <summary>
        /// 审批原因
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]//设置长度
        public string SeqeMEssage { get; set; }
        /// <summary>
        /// 类型
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]//设置长度
        public string Typetable { get; set; }
        /// <summary>
        /// 流程状态
        /// </summary>
        [SugarColumn(ColumnDataType = "Nvarchar(100)", IsNullable = true)]//设置长度
        public string ProcessStatus { get; set; }
        /// <summary>
        /// 是否是最后一级审批
        /// </summary>
        public int IsFinally { get; set; }


    }
}
